home *** CD-ROM | disk | FTP | other *** search
- on clearcounter
- global isaid
- set isaid to 1
- repeat with xxx = 5 to 34
- set the foreColor of sprite xxx to 255
- set the ink of sprite xxx to 36
- end repeat
- updateStage()
- end
-
- on hibugcount
- global isaid, WhichBug, buglist
- repeat while the mouseDown
- set myv to the mouseV
- set myh to the mouseH
- if myv > 345 then
- set myv to 345
- end if
- if myh < 15 then
- set myh to 15
- end if
- if myh > 625 then
- set myh to 625
- end if
- set the locH of sprite the clickOn to myh
- set the locV of sprite the clickOn to myv
- updateStage()
- end repeat
- if the ink of sprite the clickOn = 4 then
- exit
- end if
- set igotit to the name of cast the castNum of sprite the clickOn
- set okbug to getAt(buglist, WhichBug)
- if char 5 of igotit = "0" then
- set igotit to 10
- else
- set igotit to value(char 4 of igotit)
- end if
- if okbug = igotit then
- set stink to the timer + 15 + (the size of cast ("num" & isaid) / 183)
- set the ink of sprite the clickOn to 4
- puppetSound("num" & isaid)
- repeat while the timer < stink
- updateStage()
- end repeat
- set isaid to isaid + 1
- end if
- end
-
- on hibugall
- global buglist, WhichBug
- updateStage()
- set tempcount to 1
- repeat with xxx = 5 to 34
- set the ink of sprite xxx to 36
- end repeat
- updateStage()
- repeat with xxx = 5 to 34
- set igotit to the name of cast the castNum of sprite xxx
- if the number of chars in string(igotit) > 3 then
- if char 5 of igotit = "0" then
- set igotit to 10
- else
- set igotit to value(char 4 of igotit)
- end if
- if igotit = getAt(buglist, WhichBug) then
- set stink to the timer + 15 + (the size of cast ("num" & tempcount) / 183)
- set the blend of sprite xxx to 100
- set the ink of sprite xxx to 4
- puppetSound("num" & tempcount)
- repeat while the timer < stink
- updateStage()
- end repeat
- set tempcount to tempcount + 1
- set the ink of sprite xxx to 36
- end if
- end if
- end repeat
- end
-